(function(jQuery) {
  jQuery.fn.validationEngineLanguage = function() { };
  jQuery.validationEngineLanguage = {
    newLang: function() {
      jQuery.validationEngineLanguage.allRules = {
        "required": {    			// Add your regex rules here, you can take telephone as an example
          "regex": "none",
          "alertText": "* Este campo es requerido",
          "alertTextCheckboxMultiple": "* Seleccione una opci&oacute;n",
          "alertTextCheckboxe": "* Este check es requerido"
        },
        "length": {
          "regex": "none",
          "alertText": "*Entre ",
          "alertText2": " y ",
          "alertText3": " caracteres permitidos"
        },
        "maxCheckbox": {
          "regex": "none",
          "alertText": "* Excede check permitidos"
        },
        "minCheckbox": {
          "regex": "none",
          "alertText": "* Por favor seleccione ",
          "alertText2": " opci&oacute;n"
        },
        "confirm": {
          "regex": "none",
          "alertText": "* No existe coincidencia"
        },
        "telephone": {
          "regex": "/^[0-9\\-\\(\\)\\ ]+$/",
          "alertText": "* Tel&eacute;fono inv&aacute;lido"
        },
        "email": {
          "regex": "/^[a-zA-Z0-9_\\.\\-]+\\@([a-zA-Z0-9\\-]+\\.)+[a-zA-Z0-9]{2,4}$/",
          "alertText": "* Email inv&aacute;lido"
        },
        "date": {
          "regex": "/^(01|02|03|04|05|06|07|08|09|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31)\\/(01|02|03|04|05|06|07|08|09|10|11|12)\\/[0-9][0-9][0-9][0-9]$/",
          "alertText": "* Fecha inv&aacute;lida"
        },
        "onlyNumber": {
          "regex": "/^[0-9\\ ]+$/",
          "alertText": "* S&oacute;lo n&uacute;meros"
        },
        "onlyNumberSigno": {
          "regex": "/^-?[0-9\\ ]+$/",
          "alertText": "* S&oacute;lo n&uacute;meros"
        },
        "decimal": {
          "regex": "/^[0-9]+([.|,|/]?([0-9]+)?)$/",
          "alertText": "* S&oacute;lo n&uacute;meros y decimales"
        },
        "noSpecialCaracters": {
          "regex": "/^[0-9a-zA-Z]+$/",
          "alertText": "* No permite caracteres especiales"
        },
        "ajaxUser": {
          "file": "validateUser.php",
          "extraData": "name=eric",
          "alertTextOk": "* El usuario est&aacute; disponible",
          "alertTextLoad": "* Cargando, espere por favor",
          "alertText": "* No disponible, ya existe"
        },
        "ajaxName": {
          "file": "validateUser.php",
          "alertText": "* No disponible, ya existe",
          "alertTextOk": "* El nombre est&aacute; disponible",
          "alertTextLoad": "* Cargando, espere por favor"
        },
        "onlyLetter": {
          "regex": "/^[a-zA-Z\ \']+$/",
          "alertText": "* S&oacute;lo letras"
        },
        "validate2fields": {
          "nname": "validate2fields",
          "alertText": "* Debe ingresar el nombre y apellido paterno"
        },
        "caracteresNoPermitidos": {
          "regex": "/(<|>)/",
          "alertText": "* Contiene caracteres no permitidos: < >"
        },
        "datoDuplicado": {
          "nname": "verificarDatoDuplicado",
          "alertText": "* No disponible, ya existe",
          "alertTextOk": "* Disponible",
          "alertTextError": "* Ha ocurrido un error interno y no se pudo obtener el valor"
        }
      }
    }
  }
})(jQuery);

jQuery(document).ready(function() {
  jQuery.validationEngineLanguage.newLang()
});